package com.example.sprintboot_demo1.controller;

import com.example.sprintboot_demo1.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class YmlController {
    @Autowired
    private User user;
    @RequestMapping("/yml")
    public String yml(){
        return user.toString();
    }
}
